﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace VersionAttribute
{
    class Program
    {
        static void Main()
        {
            MethodInfo method = typeof(VersionsInAction).GetMethod("Walk");
            var attributes = method.GetCustomAttributes(false);
            foreach (object attribute in attributes)
            {
                Console.WriteLine(attribute);
            }

            method = typeof(VersionsInAction).GetMethod("Run");
            attributes = method.GetCustomAttributes(false);
            foreach (object attribute in attributes)
            {
                Console.WriteLine(attribute);
            }
        }
    }
}
